Skip to content

Conversation

pavelkumbrasev
Copy link

It was hard....




Rect_<int> roi;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheG1uy, надо избавиться от глобальных переменных.

Rect_<int> roi;
void CallBackFunc(int event, int x, int y, int flags, void* userdata)
{

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheG1uy, почистите код от лишних пустых строчек.

position_ = next_position;
frame_ = gray_frame;

return next_position;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheG1uy, этот метод логично разбить на несколько скрытых методов, поскольку она слишком большая по размеру.

src/tracking.cpp Outdated
return nullptr;
}

double medianFunc(std::vector<double> vec) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheG1uy, по сути это должен быть скрытый метод класса, а не функция.

@pavelkumbrasev
Copy link
Author

Возможно, с функцией delElements я слегка перестарался...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants